package com.trustasia.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.trustasia.dao.UserDao;
@Service("userService")
public class UserService {
	@Resource
	private UserDao userDao;
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}


	public void add(String name){
		System.out.println("service  添加用户......"+name);
		userDao.add(name);
	}
	
	
	public void find(String name){
		System.out.println("service  查询用户......");
		userDao.find(name);
	}
}
